<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test1</title>

    <script src="../vue/vue.js"></script>
    <link rel="stylesheet" href="testCss.css">

</head>
<body>
<div id="test1">
    <div id="bag" v-bind:class="{burst:ended}"></div>

    <div id="bag-health">
        <div v-bind:style="{width:health+'%'}"></div>
    </div>

    <div id="controls">
        <button v-on:click="punch" v-show="!ended">使劲打</button>
        <button v-on:click="restart">重置</button>
    </div>
</div>
<script src="testJs.js"></script>
</body>


</html>